package com.stephen.dubbo.service.impl;

import com.stephen.dubbo.data.ProductData;
import com.stephen.dubbo.entity.Product;
import com.stephen.dubbo.service.ProductService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * Created by ssc on 2021-02-28 21:05 .
 * Description: 2.7.0及之前的版本,使用@Service,2.7.0之后版本,使用@DubboService
 *
 */
// @Service
@DubboService
public class ProductServiceImpl implements ProductService {
    @Override
    public Product get(Long id) {
        return ProductData.get(id);
    }
}
